package com.wench.design.pattern.decorator;

/**
 * @author wench
 */
public class DecoratorClient {

    public static void main(String[] args) {
        FastFood food = new FriedRice();
        System.out.println(food.getDesc() + " " + food.cost() + "元");

        System.out.println("========================");
        food = new Egg(food);
        System.out.println(food.getDesc() + " " + food.cost() + "元");

        System.out.println("========================");

        food = new Egg(food);
        System.out.println(food.getDesc() + " " + food.cost() + "元");

        food = new Bacon(food);
        System.out.println(food.getDesc() + " " + food.cost() + "元");


    }
}
